{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 5分钟使用Python爬取豆瓣TOP250电影榜"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "本视频的演示步骤：\n",
    "\n",
    "1. 使用requests爬取网页\n",
    "2. 使用BeautifulSoup实现数据解析\n",
    "3. 借助pandas将数据写出到Excel\n",
    "\n",
    "这三个库的详细用法，请看我的其他视频课程"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "from bs4 import BeautifulSoup\n",
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 1、下载共10个页面的HTML"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 构造分页数字列表\n",
    "page_indexs = range(0, 250, 25)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[0, 25, 50, 75, 100, 125, 150, 175, 200, 225]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "list(page_indexs)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "def download_all_htmls():\n",
    "    \"\"\"\n",
    "    下载所有列表页面的HTML，用于后续的分析\n",
    "    \"\"\"\n",
    "    htmls = []\n",
    "    for idx in page_indexs:\n",
    "        url = f\"https://movie.douban.com/top250?start={idx}&filter=\"\n",
    "        print(\"craw html:\", url)\n",
    "        r = requests.get(url,\n",
    "                        headers={\"User-Agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)\"})\n",
    "        if r.status_code != 200:\n",
    "            raise Exception(\"error\")\n",
    "        htmls.append(r.text)\n",
    "    return htmls"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "craw html: https://movie.douban.com/top250?start=0&filter=\n",
      "craw html: https://movie.douban.com/top250?start=25&filter=\n",
      "craw html: https://movie.douban.com/top250?start=50&filter=\n",
      "craw html: https://movie.douban.com/top250?start=75&filter=\n",
      "craw html: https://movie.douban.com/top250?start=100&filter=\n",
      "craw html: https://movie.douban.com/top250?start=125&filter=\n",
      "craw html: https://movie.douban.com/top250?start=150&filter=\n",
      "craw html: https://movie.douban.com/top250?start=175&filter=\n",
      "craw html: https://movie.douban.com/top250?start=200&filter=\n",
      "craw html: https://movie.douban.com/top250?start=225&filter=\n"
     ]
    }
   ],
   "source": [
    "# 执行爬取\n",
    "htmls = download_all_htmls()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'<!DOCTYPE html>\\n<html lang=\"zh-cmn-Hans\" class=\"ua-windows ua-webkit\">\\n<head>\\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\\n    <meta name=\"renderer\" content=\"webkit\">\\n    <meta name=\"referrer\" content=\"always\">\\n    <meta name=\"google-site-verification\" content=\"ok0wCgT20tBBgo9_zat2iAcimtN4Ftf5ccsh092Xeyw\" />\\n    <title>\\n豆瓣电影 Top 250\\n</title>\\n    \\n    <meta name=\"baidu-site-verification\" content=\"cZdR4xxR7RxmM4zE\" />\\n    <meta http-equiv=\"Pragma\" content=\"no-cache\">\\n    <meta http-equiv=\"Expires\" content=\"Sun, 6 Mar 2005 01:00:00 GMT\">\\n    \\n    <link rel=\"apple-touch-icon\" href=\"https://img3.doubanio.com/f/movie/d59b2715fdea4968a450ee5f6c95c7d7a2030065/pics/movie/apple-touch-icon.png\">\\n    <link href=\"https://img3.doubanio.com/f/shire/3e5dfc68b0f376484c50cf08a58bbca3700911dc/css/douban.css\" rel=\"stylesheet\" type=\"text/css\">\\n    <link href=\"https://img3.doubanio.com/f/shire/ae3f5a3e3085968370b1fc63afcecb22d3284848/css/separation/_all.css\" rel=\"stylesheet\" type=\"text/css\">\\n    <link href=\"https://img3.doubanio.com/f/movie/8864d3756094f5272d3c93e30ee2e324665855b0/css/movie/base/init.css\" rel=\"stylesheet\">\\n    <script type=\"text/javascript\">var _head_start = new Date();</script>\\n    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/movie/0495cb173e298c28593766009c7b0a953246c5b5/js/movie/lib/jquery.js\"></script>\\n    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/5ecaf46d6954d5a30bc7d99be86ae34031646e00/js/douban.js\"></script>\\n    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/0efdc63b77f895eaf85281fb0e44d435c6239a3f/js/separation/_all.js\"></script>\\n    \\n<link href=\"https://img3.doubanio.com/f/movie/2c95f768ea74284b900c04c0209b0a44f0a0de52/css/movie/top_movies.css\" rel=\"stylesheet\" type=\"text/css\" />\\n<script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/77323ae72a612bba8b65f845491513ff3329b1bb/js/do.js\" data-cfg-autoload=\"false\"></script>\\n<script type=\\'text/javascript\\'>\\n    Do.ready(function(){\\n            $(\"#mine-selector input[type=\\'checkbox\\']\").click(function(){\\n                var val = $(this).is(\":checked\")?$(this).val():\"\";\\n                window.location.href = \\'/top250?filter=\\' + val;\\n            })\\n    })\\n</script>\\n\\n    <style type=\"text/css\">\\n.site-nav-logo img{margin-bottom:0;}\\n</style>\\n    <style type=\"text/css\">img { max-width: 100%; }</style>\\n    <script type=\"text/javascript\"></script>\\n    <link rel=\"stylesheet\" href=\"https://img3.doubanio.com/misc/mixed_static/562925b5e3824700.css\">\\n\\n    <link rel=\"shortcut icon\" href=\"https://img3.doubanio.com/favicon.ico\" type=\"image/x-icon\">\\n</head>\\n\\n<body>\\n  \\n    <script type=\"text/javascript\">var _body_start = new Date();</script>\\n\\n    \\n    \\n\\n\\n\\n    <link href=\"//img3.doubanio.com/dae/accounts/resources/f5f3d66/shire/bundle.css\" rel=\"stylesheet\" type=\"text/css\">\\n\\n\\n\\n<div id=\"db-global-nav\" class=\"global-nav\">\\n  <div class=\"bd\">\\n    \\n<div class=\"top-nav-info\">\\n  <a href=\"https://accounts.douban.com/passport/login?source=movie\" class=\"nav-login\" rel=\"nofollow\">登录/注册</a>\\n</div>\\n\\n\\n    <div class=\"top-nav-doubanapp\">\\n  <a href=\"https://www.douban.com/doubanapp/app?channel=top-nav\" class=\"lnk-doubanapp\">下载豆瓣客户端</a>\\n  <div id=\"doubanapp-tip\">\\n    <a href=\"https://www.douban.com/doubanapp/app?channel=qipao\" class=\"tip-link\">豆瓣 <span class=\"version\">6.0</span> 全新发布</a>\\n    <a href=\"javascript: void 0;\" class=\"tip-close\">×</a>\\n  </div>\\n  <div id=\"top-nav-appintro\" class=\"more-items\">\\n    <p class=\"appintro-title\">豆瓣</p>\\n    <p class=\"qrcode\">扫码直接下载</p>\\n    <div class=\"download\">\\n      <a href=\"https://www.douban.com/doubanapp/redirect?channel=top-nav&direct_dl=1&download=iOS\">iPhone</a>\\n      <span>·</span>\\n      <a href=\"https://www.douban.com/doubanapp/redirect?channel=top-nav&direct_dl=1&download=Android\" class=\"download-android\">Android</a>\\n    </div>\\n  </div>\\n</div>\\n\\n    \\n\\n\\n<div class=\"global-nav-items\">\\n  <ul>\\n    <li class=\"\">\\n      <a href=\"https://www.douban.com\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-main&quot;,&quot;uid&quot;:&quot;0&quot;}\">豆瓣</a>\\n    </li>\\n    <li class=\"\">\\n      <a href=\"https://book.douban.com\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-book&quot;,&quot;uid&quot;:&quot;0&quot;}\">读书</a>\\n    </li>\\n    <li class=\"on\">\\n      <a href=\"https://movie.douban.com\"  data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-movie&quot;,&quot;uid&quot;:&quot;0&quot;}\">电影</a>\\n    </li>\\n    <li class=\"\">\\n      <a href=\"https://music.douban.com\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-music&quot;,&quot;uid&quot;:&quot;0&quot;}\">音乐</a>\\n    </li>\\n    <li class=\"\">\\n      <a href=\"https://www.douban.com/location\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-location&quot;,&quot;uid&quot;:&quot;0&quot;}\">同城</a>\\n    </li>\\n    <li class=\"\">\\n      <a href=\"https://www.douban.com/group\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-group&quot;,&quot;uid&quot;:&quot;0&quot;}\">小组</a>\\n    </li>\\n    <li class=\"\">\\n      <a href=\"https://read.douban.com&#47;?dcs=top-nav&amp;dcm=douban\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-read&quot;,&quot;uid&quot;:&quot;0&quot;}\">阅读</a>\\n    </li>\\n    <li class=\"\">\\n      <a href=\"https://douban.fm&#47;?from_=shire_top_nav\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-fm&quot;,&quot;uid&quot;:&quot;0&quot;}\">FM</a>\\n    </li>\\n    <li class=\"\">\\n      <a href=\"https://time.douban.com&#47;?dt_time_source=douban-web_top_nav\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-time&quot;,&quot;uid&quot;:&quot;0&quot;}\">时间</a>\\n    </li>\\n    <li class=\"\">\\n      <a href=\"https://market.douban.com&#47;?utm_campaign=douban_top_nav&amp;utm_source=douban&amp;utm_medium=pc_web\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-market&quot;,&quot;uid&quot;:&quot;0&quot;}\">豆品</a>\\n    </li>\\n    <li>\\n      <a href=\"#more\" class=\"bn-more\"><span>更多</span></a>\\n      <div class=\"more-items\">\\n        <table cellpadding=\"0\" cellspacing=\"0\">\\n          <tbody>\\n            <tr>\\n              <td>\\n                <a href=\"https://ypy.douban.com\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-ypy&quot;,&quot;uid&quot;:&quot;0&quot;}\">豆瓣摄影</a>\\n              </td>\\n            </tr>\\n          </tbody>\\n        </table>\\n      </div>\\n    </li>\\n  </ul>\\n</div>\\n\\n  </div>\\n</div>\\n<script>\\n  ;window._GLOBAL_NAV = {\\n    DOUBAN_URL: \"https://www.douban.com\",\\n    N_NEW_NOTIS: 0,\\n    N_NEW_DOUMAIL: 0\\n  };\\n</script>\\n\\n\\n\\n    <script src=\"//img3.doubanio.com/dae/accounts/resources/f5f3d66/shire/bundle.js\" defer=\"defer\"></script>\\n\\n\\n\\n\\n    \\n\\n\\n\\n    <link href=\"//img3.doubanio.com/dae/accounts/resources/f5f3d66/movie/bundle.css\" rel=\"stylesheet\" type=\"text/css\">\\n\\n\\n\\n\\n<div id=\"db-nav-movie\" class=\"nav\">\\n  <div class=\"nav-wrap\">\\n  <div class=\"nav-primary\">\\n    <div class=\"nav-logo\">\\n      <a href=\"https:&#47;&#47;movie.douban.com\">豆瓣电影</a>\\n    </div>\\n    <div class=\"nav-search\">\\n      <form action=\"https:&#47;&#47;search.douban.com&#47;movie/subject_search\" method=\"get\">\\n        <fieldset>\\n          <legend>搜索：</legend>\\n          <label for=\"inp-query\">\\n          </label>\\n          <div class=\"inp\"><input id=\"inp-query\" name=\"search_text\" size=\"22\" maxlength=\"60\" placeholder=\"搜索电影、电视剧、综艺、影人\" value=\"\"></div>\\n          <div class=\"inp-btn\"><input type=\"submit\" value=\"搜索\"></div>\\n          <input type=\"hidden\" name=\"cat\" value=\"1002\" />\\n        </fieldset>\\n      </form>\\n    </div>\\n  </div>\\n  </div>\\n  <div class=\"nav-secondary\">\\n    \\n\\n<div class=\"nav-items\">\\n  <ul>\\n    <li    ><a href=\"https://movie.douban.com/cinema/nowplaying/\"\\n     >影讯&购票</a>\\n    </li>\\n    <li    ><a href=\"https://movie.douban.com/explore\"\\n     >选电影</a>\\n    </li>\\n    <li    ><a href=\"https://movie.douban.com/tv/\"\\n     >电视剧</a>\\n    </li>\\n    <li    ><a href=\"https://movie.douban.com/chart\"\\n     >排行榜</a>\\n    </li>\\n    <li    ><a href=\"https://movie.douban.com/tag/\"\\n     >分类</a>\\n    </li>\\n    <li    ><a href=\"https://movie.douban.com/review/best/\"\\n     >影评</a>\\n    </li>\\n    <li    ><a href=\"https://movie.douban.com/annual/2019?source=navigation\"\\n     >2019年度榜单</a>\\n    </li>\\n    <li    ><a href=\"https://m.douban.com/standbyme/annual2019?source=navigation\"\\n            target=\"_blank\"\\n     >2019书影音报告</a>\\n    </li>\\n  </ul>\\n</div>\\n\\n    <a href=\"https://movie.douban.com/annual/2019?source=movie_navigation\" class=\"movieannual\"></a>\\n  </div>\\n</div>\\n\\n<script id=\"suggResult\" type=\"text/x-jquery-tmpl\">\\n  <li data-link=\"{{= url}}\">\\n            <a href=\"{{= url}}\" onclick=\"moreurl(this, {from:\\'movie_search_sugg\\', query:\\'{{= keyword }}\\', subject_id:\\'{{= id}}\\', i: \\'{{= index}}\\', type: \\'{{= type}}\\'})\">\\n            <img src=\"{{= img}}\" width=\"40\" />\\n            <p>\\n                <em>{{= title}}</em>\\n                {{if year}}\\n                    <span>{{= year}}</span>\\n                {{/if}}\\n                {{if sub_title}}\\n                    <br /><span>{{= sub_title}}</span>\\n                {{/if}}\\n                {{if address}}\\n                    <br /><span>{{= address}}</span>\\n                {{/if}}\\n                {{if episode}}\\n                    {{if episode==\"unknow\"}}\\n                        <br /><span>集数未知</span>\\n                    {{else}}\\n                        <br /><span>共{{= episode}}集</span>\\n                    {{/if}}\\n                {{/if}}\\n            </p>\\n        </a>\\n        </li>\\n  </script>\\n\\n\\n\\n\\n    <script src=\"//img3.doubanio.com/dae/accounts/resources/f5f3d66/movie/bundle.js\" defer=\"defer\"></script>\\n\\n\\n\\n\\n\\n    \\n    <div id=\"wrapper\">\\n        \\n\\n        \\n    <div id=\"content\">\\n        \\n    <h1>豆瓣电影 Top 250</h1>\\n\\n        <div class=\"grid-16-8 clearfix\">\\n            \\n            \\n            <div class=\"article\">\\n                \\n\\n\\n\\n\\n\\n\\n\\n<div class=\"opt mod\">\\n    <div class=\"tabs\">\\n      \\n    \\n\\n    </div>\\n    <span id=\"mine-selector\">\\n      <input type=\"checkbox\"  value=\"unwatched\">我没看过的\\n    </span>\\n</div>\\n\\n\\n\\n<ol class=\"grid_view\">\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">1</em>\\n                    <a href=\"https://movie.douban.com/subject/1292052/\">\\n                        <img width=\"100\" alt=\"肖申克的救赎\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p480747492.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1292052/\" class=\"\">\\n                            <span class=\"title\">肖申克的救赎</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;The Shawshank Redemption</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;月黑高飞(港)  /  刺激1995(台)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 弗兰克·德拉邦特 Frank Darabont&nbsp;&nbsp;&nbsp;主演: 蒂姆·罗宾斯 Tim Robbins /...<br>\\n                            1994&nbsp;/&nbsp;美国&nbsp;/&nbsp;犯罪 剧情\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating5-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.7</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1790062人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">希望让人自由。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">2</em>\\n                    <a href=\"https://movie.douban.com/subject/1291546/\">\\n                        <img width=\"100\" alt=\"霸王别姬\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2561716440.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1291546/\" class=\"\">\\n                            <span class=\"title\">霸王别姬</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;再见，我的妾  /  Farewell My Concubine</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 陈凯歌 Kaige Chen&nbsp;&nbsp;&nbsp;主演: 张国荣 Leslie Cheung / 张丰毅 Fengyi Zha...<br>\\n                            1993&nbsp;/&nbsp;中国大陆 中国香港&nbsp;/&nbsp;剧情 爱情 同性\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating5-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.6</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1320110人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">风华绝代。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">3</em>\\n                    <a href=\"https://movie.douban.com/subject/1292720/\">\\n                        <img width=\"100\" alt=\"阿甘正传\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p1484728154.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1292720/\" class=\"\">\\n                            <span class=\"title\">阿甘正传</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Forrest Gump</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;福雷斯特·冈普</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 罗伯特·泽米吉斯 Robert Zemeckis&nbsp;&nbsp;&nbsp;主演: 汤姆·汉克斯 Tom Hanks / ...<br>\\n                            1994&nbsp;/&nbsp;美国&nbsp;/&nbsp;剧情 爱情\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating5-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.5</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1376257人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">一部美国近现代史。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">4</em>\\n                    <a href=\"https://movie.douban.com/subject/1295644/\">\\n                        <img width=\"100\" alt=\"这个杀手不太冷\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p511118051.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1295644/\" class=\"\">\\n                            <span class=\"title\">这个杀手不太冷</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Léon</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;杀手莱昂  /  终极追杀令(台)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 吕克·贝松 Luc Besson&nbsp;&nbsp;&nbsp;主演: 让·雷诺 Jean Reno / 娜塔莉·波特曼 ...<br>\\n                            1994&nbsp;/&nbsp;法国&nbsp;/&nbsp;剧情 动作 犯罪\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.4</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1570867人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">怪蜀黍和小萝莉不得不说的故事。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">5</em>\\n                    <a href=\"https://movie.douban.com/subject/1292063/\">\\n                        <img width=\"100\" alt=\"美丽人生\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2578474613.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1292063/\" class=\"\">\\n                            <span class=\"title\">美丽人生</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;La vita è bella</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;一个快乐的传说(港)  /  Life Is Beautiful</span>\\n                        </a>\\n\\n\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 罗伯托·贝尼尼 Roberto Benigni&nbsp;&nbsp;&nbsp;主演: 罗伯托·贝尼尼 Roberto Beni...<br>\\n                            1997&nbsp;/&nbsp;意大利&nbsp;/&nbsp;剧情 喜剧 爱情 战争\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating5-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.5</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>879501人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">最美的谎言。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">6</em>\\n                    <a href=\"https://movie.douban.com/subject/1292722/\">\\n                        <img width=\"100\" alt=\"泰坦尼克号\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p457760035.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1292722/\" class=\"\">\\n                            <span class=\"title\">泰坦尼克号</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Titanic</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;铁达尼号(港 / 台)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 詹姆斯·卡梅隆 James Cameron&nbsp;&nbsp;&nbsp;主演: 莱昂纳多·迪卡普里奥 Leonardo...<br>\\n                            1997&nbsp;/&nbsp;美国&nbsp;/&nbsp;剧情 爱情 灾难\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.4</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1314428人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">失去的才是永恒的。 </span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">7</em>\\n                    <a href=\"https://movie.douban.com/subject/1291561/\">\\n                        <img width=\"100\" alt=\"千与千寻\" src=\"https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2557573348.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1291561/\" class=\"\">\\n                            <span class=\"title\">千与千寻</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;千と千尋の神隠し</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;神隐少女(台)  /  千与千寻的神隐</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 宫崎骏 Hayao Miyazaki&nbsp;&nbsp;&nbsp;主演: 柊瑠美 Rumi Hîragi / 入野自由 Miy...<br>\\n                            2001&nbsp;/&nbsp;日本&nbsp;/&nbsp;剧情 动画 奇幻\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1407622人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">最好的宫崎骏，最好的久石让。 </span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">8</em>\\n                    <a href=\"https://movie.douban.com/subject/1295124/\">\\n                        <img width=\"100\" alt=\"辛德勒的名单\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p492406163.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1295124/\" class=\"\">\\n                            <span class=\"title\">辛德勒的名单</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Schindler&#39;s List</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;舒特拉的名单(港)  /  辛德勒名单</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 史蒂文·斯皮尔伯格 Steven Spielberg&nbsp;&nbsp;&nbsp;主演: 连姆·尼森 Liam Neeson...<br>\\n                            1993&nbsp;/&nbsp;美国&nbsp;/&nbsp;剧情 历史 战争\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating5-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.5</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>707102人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">拯救一个人，就是拯救整个世界。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">9</em>\\n                    <a href=\"https://movie.douban.com/subject/3541415/\">\\n                        <img width=\"100\" alt=\"盗梦空间\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p513344864.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/3541415/\" class=\"\">\\n                            <span class=\"title\">盗梦空间</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Inception</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;潜行凶间(港)  /  全面启动(台)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 克里斯托弗·诺兰 Christopher Nolan&nbsp;&nbsp;&nbsp;主演: 莱昂纳多·迪卡普里奥 Le...<br>\\n                            2010&nbsp;/&nbsp;美国 英国&nbsp;/&nbsp;剧情 科幻 悬疑 冒险\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1337018人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">诺兰给了我们一场无法盗取的梦。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">10</em>\\n                    <a href=\"https://movie.douban.com/subject/3011091/\">\\n                        <img width=\"100\" alt=\"忠犬八公的故事\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p524964016.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/3011091/\" class=\"\">\\n                            <span class=\"title\">忠犬八公的故事</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Hachi: A Dog&#39;s Tale</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;忠犬小八(台)  /  秋田犬八千(港)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 莱塞·霍尔斯道姆 Lasse Hallström&nbsp;&nbsp;&nbsp;主演: 理查·基尔 Richard Ger...<br>\\n                            2009&nbsp;/&nbsp;美国 英国&nbsp;/&nbsp;剧情\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>909227人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">永远都不能忘记你所爱的人。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">11</em>\\n                    <a href=\"https://movie.douban.com/subject/1292001/\">\\n                        <img width=\"100\" alt=\"海上钢琴师\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2574551676.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1292001/\" class=\"\">\\n                            <span class=\"title\">海上钢琴师</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;La leggenda del pianista sull&#39;oceano</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;声光伴我飞(港)  /  一九零零的传奇</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 朱塞佩·托纳多雷 Giuseppe Tornatore&nbsp;&nbsp;&nbsp;主演: 蒂姆·罗斯 Tim Roth / ...<br>\\n                            1998&nbsp;/&nbsp;意大利&nbsp;/&nbsp;剧情 音乐\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1102704人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">每个人都要走一条自己坚定了的路，就算是粉身碎骨。 </span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">12</em>\\n                    <a href=\"https://movie.douban.com/subject/2131459/\">\\n                        <img width=\"100\" alt=\"机器人总动员\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p1461851991.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/2131459/\" class=\"\">\\n                            <span class=\"title\">机器人总动员</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;WALL·E</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;瓦力(台)  /  太空奇兵·威E(港)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 安德鲁·斯坦顿 Andrew Stanton&nbsp;&nbsp;&nbsp;主演: 本·贝尔特 Ben Burtt / 艾丽...<br>\\n                            2008&nbsp;/&nbsp;美国&nbsp;/&nbsp;科幻 动画 冒险\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>883631人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">小瓦力，大人生。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">13</em>\\n                    <a href=\"https://movie.douban.com/subject/3793023/\">\\n                        <img width=\"100\" alt=\"三傻大闹宝莱坞\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p579729551.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/3793023/\" class=\"\">\\n                            <span class=\"title\">三傻大闹宝莱坞</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;3 Idiots</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;三个傻瓜(台)  /  作死不离3兄弟(港)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 拉库马·希拉尼 Rajkumar Hirani&nbsp;&nbsp;&nbsp;主演: 阿米尔·汗 Aamir Khan / 卡...<br>\\n                            2009&nbsp;/&nbsp;印度&nbsp;/&nbsp;剧情 喜剧 爱情 歌舞\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.2</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1219111人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">英俊版憨豆，高情商版谢耳朵。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">14</em>\\n                    <a href=\"https://movie.douban.com/subject/1292064/\">\\n                        <img width=\"100\" alt=\"楚门的世界\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p479682972.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1292064/\" class=\"\">\\n                            <span class=\"title\">楚门的世界</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;The Truman Show</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;真人Show(港)  /  真人戏</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 彼得·威尔 Peter Weir&nbsp;&nbsp;&nbsp;主演: 金·凯瑞 Jim Carrey / 劳拉·琳妮 Lau...<br>\\n                            1998&nbsp;/&nbsp;美国&nbsp;/&nbsp;剧情 科幻\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>963683人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">如果再也不能见到你，祝你早安，午安，晚安。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">15</em>\\n                    <a href=\"https://movie.douban.com/subject/1291549/\">\\n                        <img width=\"100\" alt=\"放牛班的春天\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p1910824951.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1291549/\" class=\"\">\\n                            <span class=\"title\">放牛班的春天</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Les choristes</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;歌声伴我心(港)  /  唱诗班男孩</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 克里斯托夫·巴拉蒂 Christophe Barratier&nbsp;&nbsp;&nbsp;主演: 热拉尔·朱尼奥 Gé...<br>\\n                            2004&nbsp;/&nbsp;法国 瑞士 德国&nbsp;/&nbsp;剧情 音乐\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>850611人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">天籁一般的童声，是最接近上帝的存在。 </span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">16</em>\\n                    <a href=\"https://movie.douban.com/subject/1889243/\">\\n                        <img width=\"100\" alt=\"星际穿越\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2206088801.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1889243/\" class=\"\">\\n                            <span class=\"title\">星际穿越</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Interstellar</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;星际启示录(港)  /  星际效应(台)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 克里斯托弗·诺兰 Christopher Nolan&nbsp;&nbsp;&nbsp;主演: 马修·麦康纳 Matthew Mc...<br>\\n                            2014&nbsp;/&nbsp;美国 英国 加拿大 冰岛&nbsp;/&nbsp;剧情 科幻 冒险\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>977605人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">爱是一种力量，让我们超越时空感知它的存在。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">17</em>\\n                    <a href=\"https://movie.douban.com/subject/1292213/\">\\n                        <img width=\"100\" alt=\"大话西游之大圣娶亲\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2455050536.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1292213/\" class=\"\">\\n                            <span class=\"title\">大话西游之大圣娶亲</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;西遊記大結局之仙履奇緣</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;西游记完结篇仙履奇缘  /  齐天大圣西游记</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 刘镇伟 Jeffrey Lau&nbsp;&nbsp;&nbsp;主演: 周星驰 Stephen Chow / 吴孟达 Man Tat Ng...<br>\\n                            1995&nbsp;/&nbsp;中国香港 中国大陆&nbsp;/&nbsp;喜剧 爱情 奇幻 古装\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.2</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>954754人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">一生所爱。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">18</em>\\n                    <a href=\"https://movie.douban.com/subject/5912992/\">\\n                        <img width=\"100\" alt=\"熔炉\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p1363250216.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/5912992/\" class=\"\">\\n                            <span class=\"title\">熔炉</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;도가니</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;无声呐喊(港)  /  漩涡</span>\\n                        </a>\\n\\n\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 黄东赫 Dong-hyuk Hwang&nbsp;&nbsp;&nbsp;主演: 孔侑 Yoo Gong / 郑有美 Yu-mi Jeong ...<br>\\n                            2011&nbsp;/&nbsp;韩国&nbsp;/&nbsp;剧情\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>579281人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">我们一路奋战不是为了改变世界，而是为了不让世界改变我们。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">19</em>\\n                    <a href=\"https://movie.douban.com/subject/1291560/\">\\n                        <img width=\"100\" alt=\"龙猫\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2540924496.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1291560/\" class=\"\">\\n                            <span class=\"title\">龙猫</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;となりのトトロ</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;邻居托托罗  /  邻家的豆豆龙</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 宫崎骏 Hayao Miyazaki&nbsp;&nbsp;&nbsp;主演: 日高法子 Noriko Hidaka / 坂本千夏 Ch...<br>\\n                            1988&nbsp;/&nbsp;日本&nbsp;/&nbsp;动画 奇幻 冒险\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.2</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>824355人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">人人心中都有个龙猫，童年就永远不会消失。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">20</em>\\n                    <a href=\"https://movie.douban.com/subject/1307914/\">\\n                        <img width=\"100\" alt=\"无间道\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2564556863.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1307914/\" class=\"\">\\n                            <span class=\"title\">无间道</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;無間道</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;Infernal Affairs  /  Mou gaan dou</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 刘伟强 / 麦兆辉&nbsp;&nbsp;&nbsp;主演: 刘德华 / 梁朝伟 / 黄秋生<br>\\n                            2002&nbsp;/&nbsp;中国香港&nbsp;/&nbsp;剧情 犯罪 悬疑\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.2</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>782205人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">香港电影史上永不过时的杰作。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">21</em>\\n                    <a href=\"https://movie.douban.com/subject/25662329/\">\\n                        <img width=\"100\" alt=\"疯狂动物城\" src=\"https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2315672647.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/25662329/\" class=\"\">\\n                            <span class=\"title\">疯狂动物城</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Zootopia</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;优兽大都会(港)  /  动物方城市(台)</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore&nbsp;&nbsp;&nbsp;主演: 金妮弗·...<br>\\n                            2016&nbsp;/&nbsp;美国&nbsp;/&nbsp;喜剧 动画 冒险\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.2</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1123522人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">22</em>\\n                    <a href=\"https://movie.douban.com/subject/1291841/\">\\n                        <img width=\"100\" alt=\"教父\" src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p616779645.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1291841/\" class=\"\">\\n                            <span class=\"title\">教父</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;The Godfather</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;Mario Puzo&#39;s The Godfather</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola&nbsp;&nbsp;&nbsp;主演: 马龙·白兰度 M...<br>\\n                            1972&nbsp;/&nbsp;美国&nbsp;/&nbsp;剧情 犯罪\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.3</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>604989人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">千万不要记恨你的对手，这样会让你失去理智。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">23</em>\\n                    <a href=\"https://movie.douban.com/subject/1849031/\">\\n                        <img width=\"100\" alt=\"当幸福来敲门\" src=\"https://img1.doubanio.com/view/photo/s_ratio_poster/public/p1312700628.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/1849031/\" class=\"\">\\n                            <span class=\"title\">当幸福来敲门</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;The Pursuit of Happyness</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;寻找快乐的故事(港)  /  追求快乐</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 加布里尔·穆奇诺 Gabriele Muccino&nbsp;&nbsp;&nbsp;主演: 威尔·史密斯 Will Smith ...<br>\\n                            2006&nbsp;/&nbsp;美国&nbsp;/&nbsp;剧情 传记 家庭\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.1</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>982603人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">平民励志片。 </span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">24</em>\\n                    <a href=\"https://movie.douban.com/subject/3319755/\">\\n                        <img width=\"100\" alt=\"怦然心动\" src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2220734673.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/3319755/\" class=\"\">\\n                            <span class=\"title\">怦然心动</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Flipped</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;萌动青春  /  青春萌动</span>\\n                        </a>\\n\\n\\n                            <span class=\"playable\">[可播放]</span>\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 罗伯·莱纳 Rob Reiner&nbsp;&nbsp;&nbsp;主演: 玛德琳·卡罗尔 Madeline Carroll / 卡...<br>\\n                            2010&nbsp;/&nbsp;美国&nbsp;/&nbsp;剧情 喜剧 爱情\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.0</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>1119154人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">真正的幸福是来自内心深处。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n        <li>\\n            <div class=\"item\">\\n                <div class=\"pic\">\\n                    <em class=\"\">25</em>\\n                    <a href=\"https://movie.douban.com/subject/6786002/\">\\n                        <img width=\"100\" alt=\"触不可及\" src=\"https://img1.doubanio.com/view/photo/s_ratio_poster/public/p1454259399.jpg\" class=\"\">\\n                    </a>\\n                </div>\\n                <div class=\"info\">\\n                    <div class=\"hd\">\\n                        <a href=\"https://movie.douban.com/subject/6786002/\" class=\"\">\\n                            <span class=\"title\">触不可及</span>\\n                                    <span class=\"title\">&nbsp;/&nbsp;Intouchables</span>\\n                                <span class=\"other\">&nbsp;/&nbsp;闪亮人生(港)  /  逆转人生(台)</span>\\n                        </a>\\n\\n\\n                    </div>\\n                    <div class=\"bd\">\\n                        <p class=\"\">\\n                            导演: 奥利维·那卡什 Olivier Nakache / 艾力克·托兰达 Eric Toledano&nbsp;&nbsp;&nbsp;主...<br>\\n                            2011&nbsp;/&nbsp;法国&nbsp;/&nbsp;剧情 喜剧\\n                        </p>\\n\\n                        \\n                        <div class=\"star\">\\n                                <span class=\"rating45-t\"></span>\\n                                <span class=\"rating_num\" property=\"v:average\">9.2</span>\\n                                <span property=\"v:best\" content=\"10.0\"></span>\\n                                <span>642926人评价</span>\\n                        </div>\\n\\n                            <p class=\"quote\">\\n                                <span class=\"inq\">满满温情的高雅喜剧。</span>\\n                            </p>\\n                    </div>\\n                </div>\\n            </div>\\n        </li>\\n</ol>\\n\\n\\n\\n    \\n    \\n    \\n\\n        <div class=\"paginator\">\\n        <span class=\"prev\">\\n            &lt;前页\\n        </span>\\n        \\n        \\n\\n                <span class=\"thispage\">1</span>\\n                \\n            <a href=\"?start=25&amp;filter=\" >2</a>\\n        \\n                \\n            <a href=\"?start=50&amp;filter=\" >3</a>\\n        \\n                \\n            <a href=\"?start=75&amp;filter=\" >4</a>\\n        \\n                \\n            <a href=\"?start=100&amp;filter=\" >5</a>\\n        \\n                \\n            <a href=\"?start=125&amp;filter=\" >6</a>\\n        \\n                \\n            <a href=\"?start=150&amp;filter=\" >7</a>\\n        \\n                \\n            <a href=\"?start=175&amp;filter=\" >8</a>\\n        \\n                \\n            <a href=\"?start=200&amp;filter=\" >9</a>\\n        \\n                \\n            <a href=\"?start=225&amp;filter=\" >10</a>\\n        \\n        <span class=\"next\">\\n            <link rel=\"next\" href=\"?start=25&amp;filter=\"/>\\n            <a href=\"?start=25&amp;filter=\" >后页&gt;</a>\\n        </span>\\n\\n            <span class=\"count\">(共250条)</span>\\n        </div>\\n\\n\\n\\n            </div>\\n            <div class=\"aside\">\\n                \\n<p class=\"pl\">\\n    豆瓣用户每天都在对“看过”的电影进行“很差”到“力荐”的评价，豆瓣根据每部影片看过的人数以及该影片所得的评价等综合数据，通过算法分析产生豆瓣电影 Top 250。\\n</p>\\n\\n<div id=\"dale_movie_top250_bottom_right\"></div>\\n\\n<!-- douban ad begin -->\\n\\n\\n\\n\\n\\n\\n<div class=\"mobile-app-entrance block5 app-movie\">\\n    <a class=\"entrance-link\" href=\"https://www.douban.com/doubanapp/frodo\">\\n        <div class=\"entrance-qrcode\">\\n            <img src=\"https://img3.doubanio.com/f/movie/a02f6ed325fc52e220f299d51e730c422e2bcd16/pics/movie/douban_app_ad/qrcode.png\" alt=\"扫码下载豆瓣 App\" width=\"80\" height=\"80\" />\\n        </div>\\n        <div class=\"entrance-info\">\\n            <span class=\"app-icon icon-movie\"></span>\\n            <span class=\"main-title\">豆瓣</span>\\n            <span class=\"sub-title\">让好电影来找你</span>\\n        </div>\\n    </a>\\n</div>\\n\\n<!-- douban ad end -->\\n\\n\\n            </div>\\n            <div class=\"extra\">\\n                \\n            </div>\\n        </div>\\n    </div>\\n\\n        \\n    <div id=\"footer\">\\n            <div class=\"footer-extra\"></div>\\n        \\n<span id=\"icp\" class=\"fleft gray-link\">\\n    &copy; 2005－2020 douban.com, all rights reserved 北京豆网科技有限公司\\n</span>\\n\\n<a href=\"https://www.douban.com/hnypt/variformcyst.py\" style=\"display: none;\"></a>\\n\\n<span class=\"fright\">\\n    <a href=\"https://www.douban.com/about\">关于豆瓣</a>\\n    · <a href=\"https://www.douban.com/jobs\">在豆瓣工作</a>\\n    · <a href=\"https://www.douban.com/about?topic=contactus\">联系我们</a>\\n    · <a href=\"https://www.douban.com/about/legal\">法律声明</a>\\n    \\n    · <a href=\"https://help.douban.com/?app=movie\" target=\"_blank\">帮助中心</a>\\n    · <a href=\"https://www.douban.com/doubanapp/\">移动应用</a>\\n    · <a href=\"https://www.douban.com/partner/\">豆瓣广告</a>\\n</span>\\n\\n    </div>\\n\\n    </div>\\n    <!-- COLLECTED JS -->\\n        \\n        \\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"https://img3.doubanio.com/f/shire/8377b9498330a2e6f056d863987cc7a37eb4d486/css/ui/dialog.css\" />\\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"https://img3.doubanio.com/f/movie/4aca95d66d37ec0712b3d19973b5d8feb75f2f05/css/movie/mod/reg_login_pop.css\" />\\n    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/77323ae72a612bba8b65f845491513ff3329b1bb/js/do.js\" data-cfg-autoload=\"false\"></script>\\n    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/383a6e43f2108dc69e3ff2681bc4dc6c72a5ffb0/js/ui/dialog.js\"></script>\\n    <script type=\"text/javascript\">\\n        var HTTPS_DB=\\'https://www.douban.com\\';\\nvar account_pop={open:function(o,e){e?referrer=\"?referrer=\"+encodeURIComponent(e):referrer=\"?referrer=\"+window.location.href;var n=\"\",i=\"\",t=448;n=\"用户登录\",i=\"https://accounts.douban.com/passport/login_popup?source=movie\";var r=document.location.protocol+\"//\"+document.location.hostname,a=dui.Dialog({width:340,title:n,height:t,cls:\"account_pop\",isHideTitle:!0,modal:!0,content:\"<iframe scrolling=\\'no\\' frameborder=\\'0\\' width=\\'340\\' height=\\'\"+t+\"\\' src=\\'\"+i+\"\\' name=\\'\"+r+\"\\'></iframe>\"},!0),c=a.node;if(c.undelegate(),c.delegate(\".dui-dialog-close\",\"click\",function(){var o=$(\"body\");o.find(\"#login_msk\").hide(),o.find(\".account_pop\").remove()}),$(window).width()<478){var d=\"\";\"reg\"===o?d=HTTPS_DB+\"/accounts/register\"+referrer:\"login\"===o&&(d=HTTPS_DB+\"/accounts/login\"+referrer),window.location.href=d}else a.open();$(window).bind(\"message\",function(o){\"https://accounts.douban.com\"===o.originalEvent.origin&&(c.find(\"iframe\").css(\"height\",o.originalEvent.data),c.height(o.originalEvent.data),a.update())})}};Douban&&Douban.init_show_login&&(Douban.init_show_login=function(o){var e=$(o);e.click(function(){var o=e.data(\"ref\")||\"\";return account_pop.open(\"login\",o),!1})}),Do(function(){$(\"body\").delegate(\".pop_register\",\"click\",function(o){o.preventDefault();var e=$(this).data(\"ref\")||\"\";return account_pop.open(\"reg\",e),!1}),$(\"body\").delegate(\".pop_login\",\"click\",function(o){o.preventDefault();var e=$(this).data(\"ref\")||\"\";return account_pop.open(\"login\",e),!1})});\\n    </script>\\n\\n    \\n    \\n\\n\\n\\n\\n    \\n<script type=\"text/javascript\">\\n    (function (global) {\\n        var newNode = global.document.createElement(\\'script\\'),\\n            existingNode = global.document.getElementsByTagName(\\'script\\')[0],\\n            adSource = \\'//erebor.douban.com/\\',\\n            userId = \\'\\',\\n            browserId = \\'mSRg4OXWhgA\\',\\n            criteria = \\'3:/top250?start=0&amp;filter=\\',\\n            preview = \\'\\',\\n            debug = false,\\n            adSlots = [\\'dale_movie_top250_bottom_right\\'];\\n\\n        global.DoubanAdRequest = {src: adSource, uid: userId, bid: browserId, crtr: criteria, prv: preview, debug: debug};\\n        global.DoubanAdSlots = (global.DoubanAdSlots || []).concat(adSlots);\\n\\n        newNode.setAttribute(\\'type\\', \\'text/javascript\\');\\n        newNode.setAttribute(\\'src\\', \\'//img1.doubanio.com/eDRjYjNvdi9mL2FkanMvZTQ2YTNkMjgwYjBiMzc2OWE4YTI3MWFhMzI0NTQwMTBlMWY3OTYzMy9hZC5yZWxlYXNlLmpz\\');\\n        newNode.setAttribute(\\'async\\', true);\\n        existingNode.parentNode.insertBefore(newNode, existingNode);\\n    })(this);\\n</script>\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n    \\n  \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n<script type=\"text/javascript\">\\nvar _paq = _paq || [];\\n_paq.push([\\'trackPageView\\']);\\n_paq.push([\\'enableLinkTracking\\']);\\n(function() {\\n    var p=((\\'https:\\' == document.location.protocol) ? \\'https\\' : \\'http\\'), u=p+\\'://fundin.douban.com/\\';\\n    _paq.push([\\'setTrackerUrl\\', u+\\'piwik\\']);\\n    _paq.push([\\'setSiteId\\', \\'100001\\']);\\n    var d=document, g=d.createElement(\\'script\\'), s=d.getElementsByTagName(\\'script\\')[0];\\n    g.type=\\'text/javascript\\';\\n    g.defer=true;\\n    g.async=true;\\n    g.src=p+\\'://img3.doubanio.com/dae/fundin/piwik.js\\';\\n    s.parentNode.insertBefore(g,s);\\n})();\\n</script>\\n\\n<script type=\"text/javascript\">\\nvar setMethodWithNs = function(namespace) {\\n  var ns = namespace ? namespace + \\'.\\' : \\'\\'\\n    , fn = function(string) {\\n        if(!ns) {return string}\\n        return ns + string\\n      }\\n  return fn\\n}\\n\\nvar gaWithNamespace = function(fn, namespace) {\\n  var method = setMethodWithNs(namespace)\\n  fn.call(this, method)\\n}\\n\\nvar _gaq = _gaq || []\\n  , accounts = [\\n      { id: \\'UA-7019765-1\\', namespace: \\'douban\\' }\\n    , { id: \\'UA-7019765-19\\', namespace: \\'\\' }\\n    ]\\n  , gaInit = function(account) {\\n      gaWithNamespace(function(method) {\\n        gaInitFn.call(this, method, account)\\n      }, account.namespace)\\n    }\\n  , gaInitFn = function(method, account) {\\n      _gaq.push([method(\\'_setAccount\\'), account.id]);\\n      _gaq.push([method(\\'_setSampleRate\\'), \\'5\\']);\\n\\n      \\n  _gaq.push([method(\\'_addOrganic\\'), \\'google\\', \\'q\\'])\\n  _gaq.push([method(\\'_addOrganic\\'), \\'baidu\\', \\'wd\\'])\\n  _gaq.push([method(\\'_addOrganic\\'), \\'soso\\', \\'w\\'])\\n  _gaq.push([method(\\'_addOrganic\\'), \\'youdao\\', \\'q\\'])\\n  _gaq.push([method(\\'_addOrganic\\'), \\'so.360.cn\\', \\'q\\'])\\n  _gaq.push([method(\\'_addOrganic\\'), \\'sogou\\', \\'query\\'])\\n  if (account.namespace) {\\n    _gaq.push([method(\\'_addIgnoredOrganic\\'), \\'豆瓣\\'])\\n    _gaq.push([method(\\'_addIgnoredOrganic\\'), \\'douban\\'])\\n    _gaq.push([method(\\'_addIgnoredOrganic\\'), \\'豆瓣网\\'])\\n    _gaq.push([method(\\'_addIgnoredOrganic\\'), \\'www.douban.com\\'])\\n  }\\n\\n      if (account.namespace === \\'douban\\') {\\n        _gaq.push([method(\\'_setDomainName\\'), \\'.douban.com\\'])\\n      }\\n\\n        _gaq.push([method(\\'_setCustomVar\\'), 1, \\'responsive_view_mode\\', \\'desktop\\', 3])\\n\\n        _gaq.push([method(\\'_setCustomVar\\'), 2, \\'login_status\\', \\'0\\', 2]);\\n\\n      _gaq.push([method(\\'_trackPageview\\')])\\n    }\\n\\nfor(var i = 0, l = accounts.length; i < l; i++) {\\n  var account = accounts[i]\\n  gaInit(account)\\n}\\n\\n\\n;(function() {\\n    var ga = document.createElement(\\'script\\');\\n    ga.src = (\\'https:\\' == document.location.protocol ? \\'https://ssl\\' : \\'http://www\\') + \\'.google-analytics.com/ga.js\\';\\n    ga.setAttribute(\\'async\\', \\'true\\');\\n    document.documentElement.firstChild.appendChild(ga);\\n})()\\n</script>\\n\\n\\n\\n\\n\\n\\n\\n\\n      \\n    \\n\\n    <!-- dae-web-movie--default-8f7c789bf-92kz6-->\\n\\n  <script>_SPLITTEST=\\'\\'</script>\\n</body>\\n\\n</html>\\n\\n\\n'"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "htmls[0]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 2、解析HTML得到数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "def parse_single_html(html):\n",
    "    \"\"\"\n",
    "    解析单个HTML，得到数据\n",
    "    @return list({\"link\", \"title\", [label]})\n",
    "    \"\"\"\n",
    "    soup = BeautifulSoup(html, 'html.parser')\n",
    "    article_items = (\n",
    "        soup.find(\"div\", class_=\"article\")\n",
    "            .find(\"ol\", class_=\"grid_view\")\n",
    "            .find_all(\"div\", class_=\"item\")\n",
    "    )\n",
    "    datas = []\n",
    "    for article_item in article_items:\n",
    "        rank = article_item.find(\"div\", class_=\"pic\").find(\"em\").get_text()\n",
    "        info = article_item.find(\"div\", class_=\"info\")\n",
    "        title = info.find(\"div\", class_=\"hd\").find(\"span\", class_=\"title\").get_text()\n",
    "        stars = (\n",
    "            info.find(\"div\", class_=\"bd\")\n",
    "                .find(\"div\", class_=\"star\")\n",
    "                .find_all(\"span\")\n",
    "        )\n",
    "        rating_star = stars[0][\"class\"][0]\n",
    "        rating_num = stars[1].get_text()\n",
    "        comments = stars[3].get_text()\n",
    "        \n",
    "        datas.append({\n",
    "            \"rank\":rank,\n",
    "            \"title\":title,\n",
    "            \"rating_star\":rating_star.replace(\"rating\",\"\").replace(\"-t\",\"\"),\n",
    "            \"rating_num\":rating_num,\n",
    "            \"comments\":comments.replace(\"人评价\", \"\")\n",
    "        })\n",
    "    return datas\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[{'comments': '1790062',\n",
      "  'rank': '1',\n",
      "  'rating_num': '9.7',\n",
      "  'rating_star': '5',\n",
      "  'title': '肖申克的救赎'},\n",
      " {'comments': '1320110',\n",
      "  'rank': '2',\n",
      "  'rating_num': '9.6',\n",
      "  'rating_star': '5',\n",
      "  'title': '霸王别姬'},\n",
      " {'comments': '1376257',\n",
      "  'rank': '3',\n",
      "  'rating_num': '9.5',\n",
      "  'rating_star': '5',\n",
      "  'title': '阿甘正传'},\n",
      " {'comments': '1570867',\n",
      "  'rank': '4',\n",
      "  'rating_num': '9.4',\n",
      "  'rating_star': '45',\n",
      "  'title': '这个杀手不太冷'},\n",
      " {'comments': '879501',\n",
      "  'rank': '5',\n",
      "  'rating_num': '9.5',\n",
      "  'rating_star': '5',\n",
      "  'title': '美丽人生'},\n",
      " {'comments': '1314428',\n",
      "  'rank': '6',\n",
      "  'rating_num': '9.4',\n",
      "  'rating_star': '45',\n",
      "  'title': '泰坦尼克号'},\n",
      " {'comments': '1407622',\n",
      "  'rank': '7',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '千与千寻'},\n",
      " {'comments': '707102',\n",
      "  'rank': '8',\n",
      "  'rating_num': '9.5',\n",
      "  'rating_star': '5',\n",
      "  'title': '辛德勒的名单'},\n",
      " {'comments': '1337018',\n",
      "  'rank': '9',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '盗梦空间'},\n",
      " {'comments': '909227',\n",
      "  'rank': '10',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '忠犬八公的故事'},\n",
      " {'comments': '1102704',\n",
      "  'rank': '11',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '海上钢琴师'},\n",
      " {'comments': '883631',\n",
      "  'rank': '12',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '机器人总动员'},\n",
      " {'comments': '1219111',\n",
      "  'rank': '13',\n",
      "  'rating_num': '9.2',\n",
      "  'rating_star': '45',\n",
      "  'title': '三傻大闹宝莱坞'},\n",
      " {'comments': '963683',\n",
      "  'rank': '14',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '楚门的世界'},\n",
      " {'comments': '850611',\n",
      "  'rank': '15',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '放牛班的春天'},\n",
      " {'comments': '977605',\n",
      "  'rank': '16',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '星际穿越'},\n",
      " {'comments': '954754',\n",
      "  'rank': '17',\n",
      "  'rating_num': '9.2',\n",
      "  'rating_star': '45',\n",
      "  'title': '大话西游之大圣娶亲'},\n",
      " {'comments': '579281',\n",
      "  'rank': '18',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '熔炉'},\n",
      " {'comments': '824355',\n",
      "  'rank': '19',\n",
      "  'rating_num': '9.2',\n",
      "  'rating_star': '45',\n",
      "  'title': '龙猫'},\n",
      " {'comments': '782205',\n",
      "  'rank': '20',\n",
      "  'rating_num': '9.2',\n",
      "  'rating_star': '45',\n",
      "  'title': '无间道'},\n",
      " {'comments': '1123522',\n",
      "  'rank': '21',\n",
      "  'rating_num': '9.2',\n",
      "  'rating_star': '45',\n",
      "  'title': '疯狂动物城'},\n",
      " {'comments': '604989',\n",
      "  'rank': '22',\n",
      "  'rating_num': '9.3',\n",
      "  'rating_star': '45',\n",
      "  'title': '教父'},\n",
      " {'comments': '982603',\n",
      "  'rank': '23',\n",
      "  'rating_num': '9.1',\n",
      "  'rating_star': '45',\n",
      "  'title': '当幸福来敲门'},\n",
      " {'comments': '1119154',\n",
      "  'rank': '24',\n",
      "  'rating_num': '9.0',\n",
      "  'rating_star': '45',\n",
      "  'title': '怦然心动'},\n",
      " {'comments': '642926',\n",
      "  'rank': '25',\n",
      "  'rating_num': '9.2',\n",
      "  'rating_star': '45',\n",
      "  'title': '触不可及'}]\n"
     ]
    }
   ],
   "source": [
    "import pprint\n",
    "pprint.pprint(parse_single_html(htmls[0]))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 执行所有的HTML页面的解析\n",
    "all_datas = []\n",
    "for html in htmls:\n",
    "    all_datas.extend(parse_single_html(html))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'rank': '1',\n",
       "  'title': '肖申克的救赎',\n",
       "  'rating_star': '5',\n",
       "  'rating_num': '9.7',\n",
       "  'comments': '1790062'},\n",
       " {'rank': '2',\n",
       "  'title': '霸王别姬',\n",
       "  'rating_star': '5',\n",
       "  'rating_num': '9.6',\n",
       "  'comments': '1320110'},\n",
       " {'rank': '3',\n",
       "  'title': '阿甘正传',\n",
       "  'rating_star': '5',\n",
       "  'rating_num': '9.5',\n",
       "  'comments': '1376257'},\n",
       " {'rank': '4',\n",
       "  'title': '这个杀手不太冷',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.4',\n",
       "  'comments': '1570867'},\n",
       " {'rank': '5',\n",
       "  'title': '美丽人生',\n",
       "  'rating_star': '5',\n",
       "  'rating_num': '9.5',\n",
       "  'comments': '879501'},\n",
       " {'rank': '6',\n",
       "  'title': '泰坦尼克号',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.4',\n",
       "  'comments': '1314428'},\n",
       " {'rank': '7',\n",
       "  'title': '千与千寻',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '1407622'},\n",
       " {'rank': '8',\n",
       "  'title': '辛德勒的名单',\n",
       "  'rating_star': '5',\n",
       "  'rating_num': '9.5',\n",
       "  'comments': '707102'},\n",
       " {'rank': '9',\n",
       "  'title': '盗梦空间',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '1337018'},\n",
       " {'rank': '10',\n",
       "  'title': '忠犬八公的故事',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '909227'},\n",
       " {'rank': '11',\n",
       "  'title': '海上钢琴师',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '1102704'},\n",
       " {'rank': '12',\n",
       "  'title': '机器人总动员',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '883631'},\n",
       " {'rank': '13',\n",
       "  'title': '三傻大闹宝莱坞',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '1219111'},\n",
       " {'rank': '14',\n",
       "  'title': '楚门的世界',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '963683'},\n",
       " {'rank': '15',\n",
       "  'title': '放牛班的春天',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '850611'},\n",
       " {'rank': '16',\n",
       "  'title': '星际穿越',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '977605'},\n",
       " {'rank': '17',\n",
       "  'title': '大话西游之大圣娶亲',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '954754'},\n",
       " {'rank': '18',\n",
       "  'title': '熔炉',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '579281'},\n",
       " {'rank': '19',\n",
       "  'title': '龙猫',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '824355'},\n",
       " {'rank': '20',\n",
       "  'title': '无间道',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '782205'},\n",
       " {'rank': '21',\n",
       "  'title': '疯狂动物城',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '1123522'},\n",
       " {'rank': '22',\n",
       "  'title': '教父',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '604989'},\n",
       " {'rank': '23',\n",
       "  'title': '当幸福来敲门',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '982603'},\n",
       " {'rank': '24',\n",
       "  'title': '怦然心动',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '1119154'},\n",
       " {'rank': '25',\n",
       "  'title': '触不可及',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '642926'},\n",
       " {'rank': '26',\n",
       "  'title': '蝙蝠侠：黑暗骑士',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '658498'},\n",
       " {'rank': '27',\n",
       "  'title': '活着',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '508172'},\n",
       " {'rank': '28',\n",
       "  'title': '控方证人',\n",
       "  'rating_star': '5',\n",
       "  'rating_num': '9.6',\n",
       "  'comments': '240917'},\n",
       " {'rank': '29',\n",
       "  'title': '乱世佳人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '438537'},\n",
       " {'rank': '30',\n",
       "  'title': '少年派的奇幻漂流',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '944946'},\n",
       " {'rank': '31',\n",
       "  'title': '摔跤吧！爸爸',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '985501'},\n",
       " {'rank': '32',\n",
       "  'title': '指环王3：王者无敌',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '483081'},\n",
       " {'rank': '33',\n",
       "  'title': '飞屋环游记',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '869004'},\n",
       " {'rank': '34',\n",
       "  'title': '末代皇帝',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '434491'},\n",
       " {'rank': '35',\n",
       "  'title': '寻梦环游记',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '938898'},\n",
       " {'rank': '36',\n",
       "  'title': '十二怒汉',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.4',\n",
       "  'comments': '291217'},\n",
       " {'rank': '37',\n",
       "  'title': '鬼子来了',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '405895'},\n",
       " {'rank': '38',\n",
       "  'title': '天空之城',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '555086'},\n",
       " {'rank': '39',\n",
       "  'title': '大话西游之月光宝盒',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '771496'},\n",
       " {'rank': '40',\n",
       "  'title': '天堂电影院',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '448806'},\n",
       " {'rank': '41',\n",
       "  'title': '哈尔的移动城堡',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '630852'},\n",
       " {'rank': '42',\n",
       "  'title': '何以为家',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '515184'},\n",
       " {'rank': '43',\n",
       "  'title': '罗马假日',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '639429'},\n",
       " {'rank': '44',\n",
       "  'title': '素媛',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '381517'},\n",
       " {'rank': '45',\n",
       "  'title': '闻香识女人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '552925'},\n",
       " {'rank': '46',\n",
       "  'title': '搏击俱乐部',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '590863'},\n",
       " {'rank': '47',\n",
       "  'title': '辩护人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '386418'},\n",
       " {'rank': '48',\n",
       "  'title': '窃听风暴',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '375795'},\n",
       " {'rank': '49',\n",
       "  'title': '死亡诗社',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '456617'},\n",
       " {'rank': '50',\n",
       "  'title': '教父2',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '331383'},\n",
       " {'rank': '51',\n",
       "  'title': '指环王2：双塔奇兵',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '445597'},\n",
       " {'rank': '52',\n",
       "  'title': '狮子王',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '503710'},\n",
       " {'rank': '53',\n",
       "  'title': '两杆大烟枪',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '400005'},\n",
       " {'rank': '54',\n",
       "  'title': '飞越疯人院',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '403651'},\n",
       " {'rank': '55',\n",
       "  'title': '哈利·波特与魔法石',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '555833'},\n",
       " {'rank': '56',\n",
       "  'title': '指环王1：魔戒再现',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '500691'},\n",
       " {'rank': '57',\n",
       "  'title': '饮食男女',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '359470'},\n",
       " {'rank': '58',\n",
       "  'title': '大闹天宫',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '230425'},\n",
       " {'rank': '59',\n",
       "  'title': '美丽心灵',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '491656'},\n",
       " {'rank': '60',\n",
       "  'title': 'V字仇杀队',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '701636'},\n",
       " {'rank': '61',\n",
       "  'title': '我不是药神',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '1346461'},\n",
       " {'rank': '62',\n",
       "  'title': '黑客帝国',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '496199'},\n",
       " {'rank': '63',\n",
       "  'title': '钢琴家',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '328181'},\n",
       " {'rank': '64',\n",
       "  'title': '本杰明·巴顿奇事',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '644506'},\n",
       " {'rank': '65',\n",
       "  'title': '海豚湾',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '266500'},\n",
       " {'rank': '66',\n",
       "  'title': '猫鼠游戏',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '485568'},\n",
       " {'rank': '67',\n",
       "  'title': '让子弹飞',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '1050628'},\n",
       " {'rank': '68',\n",
       "  'title': '看不见的客人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '734478'},\n",
       " {'rank': '69',\n",
       "  'title': '情书',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '597830'},\n",
       " {'rank': '70',\n",
       "  'title': '西西里的美丽传说',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '626286'},\n",
       " {'rank': '71',\n",
       "  'title': '小鞋子',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '251269'},\n",
       " {'rank': '72',\n",
       "  'title': '拯救大兵瑞恩',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '414752'},\n",
       " {'rank': '73',\n",
       "  'title': '美国往事',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '276133'},\n",
       " {'rank': '74',\n",
       "  'title': '音乐之声',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '382607'},\n",
       " {'rank': '75',\n",
       "  'title': '致命魔术',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '551704'},\n",
       " {'rank': '76',\n",
       "  'title': '穿条纹睡衣的男孩',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '306375'},\n",
       " {'rank': '77',\n",
       "  'title': '七宗罪',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '648926'},\n",
       " {'rank': '78',\n",
       "  'title': '低俗小说',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '551165'},\n",
       " {'rank': '79',\n",
       "  'title': '被嫌弃的松子的一生',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '492847'},\n",
       " {'rank': '80',\n",
       "  'title': '沉默的羔羊',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '548163'},\n",
       " {'rank': '81',\n",
       "  'title': '蝴蝶效应',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '605357'},\n",
       " {'rank': '82',\n",
       "  'title': '春光乍泄',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '408304'},\n",
       " {'rank': '83',\n",
       "  'title': '心灵捕手',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '450084'},\n",
       " {'rank': '84',\n",
       "  'title': '禁闭岛',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '601577'},\n",
       " {'rank': '85',\n",
       "  'title': '布达佩斯大饭店',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '564922'},\n",
       " {'rank': '86',\n",
       "  'title': '勇敢的心',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '417740'},\n",
       " {'rank': '87',\n",
       "  'title': '剪刀手爱德华',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '739663'},\n",
       " {'rank': '88',\n",
       "  'title': '天使爱美丽',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '713929'},\n",
       " {'rank': '89',\n",
       "  'title': '阿凡达',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '873525'},\n",
       " {'rank': '90',\n",
       "  'title': '摩登时代',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '175218'},\n",
       " {'rank': '91',\n",
       "  'title': '加勒比海盗',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '576793'},\n",
       " {'rank': '92',\n",
       "  'title': '致命ID',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '504615'},\n",
       " {'rank': '93',\n",
       "  'title': '海蒂和爷爷',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '195270'},\n",
       " {'rank': '94',\n",
       "  'title': '断背山',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '493520'},\n",
       " {'rank': '95',\n",
       "  'title': '喜剧之王',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '590589'},\n",
       " {'rank': '96',\n",
       "  'title': '幽灵公主',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '363300'},\n",
       " {'rank': '97',\n",
       "  'title': '入殓师',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '426813'},\n",
       " {'rank': '98',\n",
       "  'title': '绿皮书',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '921630'},\n",
       " {'rank': '99',\n",
       "  'title': '阳光灿烂的日子',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '415503'},\n",
       " {'rank': '100',\n",
       "  'title': '狩猎',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '220905'},\n",
       " {'rank': '101',\n",
       "  'title': '重庆森林',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '520694'},\n",
       " {'rank': '102',\n",
       "  'title': '第六感',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '357297'},\n",
       " {'rank': '103',\n",
       "  'title': '杀人回忆',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '396688'},\n",
       " {'rank': '104',\n",
       "  'title': '小森林 夏秋篇',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '259586'},\n",
       " {'rank': '105',\n",
       "  'title': '请以你的名字呼唤我',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '382156'},\n",
       " {'rank': '106',\n",
       "  'title': '消失的爱人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '584273'},\n",
       " {'rank': '107',\n",
       "  'title': '玛丽和马克思',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '311042'},\n",
       " {'rank': '108',\n",
       "  'title': '告白',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '505336'},\n",
       " {'rank': '109',\n",
       "  'title': '红辣椒',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '244157'},\n",
       " {'rank': '110',\n",
       "  'title': '爱在黎明破晓前',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '370178'},\n",
       " {'rank': '111',\n",
       "  'title': '一一',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '230036'},\n",
       " {'rank': '112',\n",
       "  'title': '哈利·波特与死亡圣器(下)',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '466109'},\n",
       " {'rank': '113',\n",
       "  'title': '7号房的礼物',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '320465'},\n",
       " {'rank': '114',\n",
       "  'title': '大鱼',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '382894'},\n",
       " {'rank': '115',\n",
       "  'title': '侧耳倾听',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '289659'},\n",
       " {'rank': '116',\n",
       "  'title': '阳光姐妹淘',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '416889'},\n",
       " {'rank': '117',\n",
       "  'title': '射雕英雄传之东成西就',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '424326'},\n",
       " {'rank': '118',\n",
       "  'title': '小森林 冬春篇',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '227004'},\n",
       " {'rank': '119',\n",
       "  'title': '超脱',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '292846'},\n",
       " {'rank': '120',\n",
       "  'title': '甜蜜蜜',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '336687'},\n",
       " {'rank': '121',\n",
       "  'title': '蝙蝠侠：黑暗骑士崛起',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '466374'},\n",
       " {'rank': '122',\n",
       "  'title': '倩女幽魂',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '452354'},\n",
       " {'rank': '123',\n",
       "  'title': '驯龙高手',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '491373'},\n",
       " {'rank': '124',\n",
       "  'title': '唐伯虎点秋香',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '632806'},\n",
       " {'rank': '125',\n",
       "  'title': '菊次郎的夏天',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '324310'},\n",
       " {'rank': '126',\n",
       "  'title': '萤火之森',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '304831'},\n",
       " {'rank': '127',\n",
       "  'title': '恐怖直播',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '396025'},\n",
       " {'rank': '128',\n",
       "  'title': '爱在日落黄昏时',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '319889'},\n",
       " {'rank': '129',\n",
       "  'title': '幸福终点站',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '345698'},\n",
       " {'rank': '130',\n",
       "  'title': '超能陆战队',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '633967'},\n",
       " {'rank': '131',\n",
       "  'title': '借东西的小人阿莉埃蒂',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '343696'},\n",
       " {'rank': '132',\n",
       "  'title': '无人知晓',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '161618'},\n",
       " {'rank': '133',\n",
       "  'title': '风之谷',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '262989'},\n",
       " {'rank': '134',\n",
       "  'title': '神偷奶爸',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '638417'},\n",
       " {'rank': '135',\n",
       "  'title': '上帝之城',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '215402'},\n",
       " {'rank': '136',\n",
       "  'title': '怪兽电力公司',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '409421'},\n",
       " {'rank': '137',\n",
       "  'title': '玩具总动员3',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '317356'},\n",
       " {'rank': '138',\n",
       "  'title': '血战钢锯岭',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '528268'},\n",
       " {'rank': '139',\n",
       "  'title': '电锯惊魂',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '323877'},\n",
       " {'rank': '140',\n",
       "  'title': '完美的世界',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '149020'},\n",
       " {'rank': '141',\n",
       "  'title': '喜宴',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '219818'},\n",
       " {'rank': '142',\n",
       "  'title': '岁月神偷',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '426441'},\n",
       " {'rank': '143',\n",
       "  'title': '时空恋旅人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '345325'},\n",
       " {'rank': '144',\n",
       "  'title': '傲慢与偏见',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '481760'},\n",
       " {'rank': '145',\n",
       "  'title': '谍影重重3',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '282249'},\n",
       " {'rank': '146',\n",
       "  'title': '七武士',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '122310'},\n",
       " {'rank': '147',\n",
       "  'title': '英雄本色',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '316498'},\n",
       " {'rank': '148',\n",
       "  'title': '教父3',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '219095'},\n",
       " {'rank': '149',\n",
       "  'title': '疯狂原始人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '570705'},\n",
       " {'rank': '150',\n",
       "  'title': '真爱至上',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '481226'},\n",
       " {'rank': '151',\n",
       "  'title': '被解救的姜戈',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '399907'},\n",
       " {'rank': '152',\n",
       "  'title': '萤火虫之墓',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '296570'},\n",
       " {'rank': '153',\n",
       "  'title': '东邪西毒',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '399470'},\n",
       " {'rank': '154',\n",
       "  'title': '心迷宫',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '311740'},\n",
       " {'rank': '155',\n",
       "  'title': '三块广告牌',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '553096'},\n",
       " {'rank': '156',\n",
       "  'title': '爆裂鼓手',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '359695'},\n",
       " {'rank': '157',\n",
       "  'title': '纵横四海',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '257027'},\n",
       " {'rank': '158',\n",
       "  'title': '记忆碎片',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '406858'},\n",
       " {'rank': '159',\n",
       "  'title': '贫民窟的百万富翁',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '531252'},\n",
       " {'rank': '160',\n",
       "  'title': '哪吒闹海',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '153459'},\n",
       " {'rank': '161',\n",
       "  'title': '黑天鹅',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '592923'},\n",
       " {'rank': '162',\n",
       "  'title': '达拉斯买家俱乐部',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '293585'},\n",
       " {'rank': '163',\n",
       "  'title': '荒蛮故事',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '258619'},\n",
       " {'rank': '164',\n",
       "  'title': '我是山姆',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '184386'},\n",
       " {'rank': '165',\n",
       "  'title': '花样年华',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '370749'},\n",
       " {'rank': '166',\n",
       "  'title': '你的名字。',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.4',\n",
       "  'comments': '872520'},\n",
       " {'rank': '167',\n",
       "  'title': '功夫',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '565363'},\n",
       " {'rank': '168',\n",
       "  'title': '天书奇谭',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '116908'},\n",
       " {'rank': '169',\n",
       "  'title': '头号玩家',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '926270'},\n",
       " {'rank': '170',\n",
       "  'title': '卢旺达饭店',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '182247'},\n",
       " {'rank': '171',\n",
       "  'title': '雨人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '288479'},\n",
       " {'rank': '172',\n",
       "  'title': '头脑特工队',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '379213'},\n",
       " {'rank': '173',\n",
       "  'title': '忠犬八公物语',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '114366'},\n",
       " {'rank': '174',\n",
       "  'title': '一个叫欧维的男人决定去死',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '227448'},\n",
       " {'rank': '175',\n",
       "  'title': '模仿游戏',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '392795'},\n",
       " {'rank': '176',\n",
       "  'title': '你看起来好像很好吃',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '223455'},\n",
       " {'rank': '177',\n",
       "  'title': '无敌破坏王',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '343741'},\n",
       " {'rank': '178',\n",
       "  'title': '未麻的部屋',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '168250'},\n",
       " {'rank': '179',\n",
       "  'title': '海边的曼彻斯特',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '324574'},\n",
       " {'rank': '180',\n",
       "  'title': '冰川时代',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '417435'},\n",
       " {'rank': '181',\n",
       "  'title': '恋恋笔记本',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '425455'},\n",
       " {'rank': '182',\n",
       "  'title': '黑客帝国3：矩阵革命',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '261863'},\n",
       " {'rank': '183',\n",
       "  'title': '二十二',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '192805'},\n",
       " {'rank': '184',\n",
       "  'title': '虎口脱险',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '154574'},\n",
       " {'rank': '185',\n",
       "  'title': '釜山行',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.4',\n",
       "  'comments': '675314'},\n",
       " {'rank': '186',\n",
       "  'title': '雨中曲',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '136930'},\n",
       " {'rank': '187',\n",
       "  'title': '海街日记',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '244952'},\n",
       " {'rank': '188',\n",
       "  'title': '人生果实',\n",
       "  'rating_star': '5',\n",
       "  'rating_num': '9.5',\n",
       "  'comments': '63714'},\n",
       " {'rank': '189',\n",
       "  'title': '房间',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '256036'},\n",
       " {'rank': '190',\n",
       "  'title': '人工智能',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '285632'},\n",
       " {'rank': '191',\n",
       "  'title': '恐怖游轮',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.4',\n",
       "  'comments': '510866'},\n",
       " {'rank': '192',\n",
       "  'title': '魔女宅急便',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '306876'},\n",
       " {'rank': '193',\n",
       "  'title': '海洋',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.1',\n",
       "  'comments': '122689'},\n",
       " {'rank': '194',\n",
       "  'title': '惊魂记',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '146109'},\n",
       " {'rank': '195',\n",
       "  'title': '燃情岁月',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '200075'},\n",
       " {'rank': '196',\n",
       "  'title': '罗生门',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '198260'},\n",
       " {'rank': '197',\n",
       "  'title': '穿越时空的少女',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '274267'},\n",
       " {'rank': '198',\n",
       "  'title': '疯狂的石头',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.4',\n",
       "  'comments': '513538'},\n",
       " {'rank': '199',\n",
       "  'title': '魂断蓝桥',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '180437'},\n",
       " {'rank': '200',\n",
       "  'title': '新世界',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '189229'},\n",
       " {'rank': '201',\n",
       "  'title': '哈利·波特与阿兹卡班的囚徒',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '324632'},\n",
       " {'rank': '202',\n",
       "  'title': '奇迹男孩',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '369948'},\n",
       " {'rank': '203',\n",
       "  'title': '终结者2：审判日',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '227879'},\n",
       " {'rank': '204',\n",
       "  'title': '完美陌生人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '367328'},\n",
       " {'rank': '205',\n",
       "  'title': '可可西里',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '190204'},\n",
       " {'rank': '206',\n",
       "  'title': '初恋这件小事',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.4',\n",
       "  'comments': '698664'},\n",
       " {'rank': '207',\n",
       "  'title': '阿飞正传',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '326010'},\n",
       " {'rank': '208',\n",
       "  'title': '爱在午夜降临前',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '192976'},\n",
       " {'rank': '209',\n",
       "  'title': '牯岭街少年杀人事件',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '166586'},\n",
       " {'rank': '210',\n",
       "  'title': '哈利·波特与密室',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '342637'},\n",
       " {'rank': '211',\n",
       "  'title': '猜火车',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '323744'},\n",
       " {'rank': '212',\n",
       "  'title': '2001太空漫游',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '178115'},\n",
       " {'rank': '213',\n",
       "  'title': '香水',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '391648'},\n",
       " {'rank': '214',\n",
       "  'title': '谍影重重2',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '239702'},\n",
       " {'rank': '215',\n",
       "  'title': '谍影重重',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '286164'},\n",
       " {'rank': '216',\n",
       "  'title': '战争之王',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '244168'},\n",
       " {'rank': '217',\n",
       "  'title': '无耻混蛋',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '325201'},\n",
       " {'rank': '218',\n",
       "  'title': '地球上的星星',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '135166'},\n",
       " {'rank': '219',\n",
       "  'title': '青蛇',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '333170'},\n",
       " {'rank': '220',\n",
       "  'title': '新龙门客栈',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '287400'},\n",
       " {'rank': '221',\n",
       "  'title': '绿里奇迹',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '168614'},\n",
       " {'rank': '222',\n",
       "  'title': '浪潮',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '188062'},\n",
       " {'rank': '223',\n",
       "  'title': '源代码',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.4',\n",
       "  'comments': '558524'},\n",
       " {'rank': '224',\n",
       "  'title': '朗读者',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '350512'},\n",
       " {'rank': '225',\n",
       "  'title': '城市之光',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.3',\n",
       "  'comments': '76040'},\n",
       " {'rank': '226',\n",
       "  'title': '步履不停',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '159239'},\n",
       " {'rank': '227',\n",
       "  'title': '小偷家族',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '514027'},\n",
       " {'rank': '228',\n",
       "  'title': '血钻',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '224444'},\n",
       " {'rank': '229',\n",
       "  'title': '彗星来的那一夜',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '317093'},\n",
       " {'rank': '230',\n",
       "  'title': '疯狂的麦克斯4：狂暴之路',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '333557'},\n",
       " {'rank': '231',\n",
       "  'title': '小萝莉的猴神大叔',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.4',\n",
       "  'comments': '312077'},\n",
       " {'rank': '232',\n",
       "  'title': '再次出发之纽约遇见你',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '272670'},\n",
       " {'rank': '233',\n",
       "  'title': '追随',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '119846'},\n",
       " {'rank': '234',\n",
       "  'title': '一次别离',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '182424'},\n",
       " {'rank': '235',\n",
       "  'title': '东京物语',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.2',\n",
       "  'comments': '82028'},\n",
       " {'rank': '236',\n",
       "  'title': '色，戒',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.4',\n",
       "  'comments': '421307'},\n",
       " {'rank': '237',\n",
       "  'title': '遗愿清单',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '223106'},\n",
       " {'rank': '238',\n",
       "  'title': '大佛普拉斯',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '228784'},\n",
       " {'rank': '239',\n",
       "  'title': '聚焦',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '189576'},\n",
       " {'rank': '240',\n",
       "  'title': '驴得水',\n",
       "  'rating_star': '4',\n",
       "  'rating_num': '8.3',\n",
       "  'comments': '583403'},\n",
       " {'rank': '241',\n",
       "  'title': '发条橙',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '262696'},\n",
       " {'rank': '242',\n",
       "  'title': '撞车',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '235674'},\n",
       " {'rank': '243',\n",
       "  'title': '黑鹰坠落',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '189591'},\n",
       " {'rank': '244',\n",
       "  'title': '梦之安魂曲',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '154846'},\n",
       " {'rank': '245',\n",
       "  'title': '我爱你',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '9.0',\n",
       "  'comments': '96261'},\n",
       " {'rank': '246',\n",
       "  'title': 'E.T. 外星人',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.6',\n",
       "  'comments': '234314'},\n",
       " {'rank': '247',\n",
       "  'title': '千钧一发',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.8',\n",
       "  'comments': '150973'},\n",
       " {'rank': '248',\n",
       "  'title': '变脸',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.5',\n",
       "  'comments': '296235'},\n",
       " {'rank': '249',\n",
       "  'title': '末路狂花',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.7',\n",
       "  'comments': '150872'},\n",
       " {'rank': '250',\n",
       "  'title': '四个春天',\n",
       "  'rating_star': '45',\n",
       "  'rating_num': '8.9',\n",
       "  'comments': '101759'}]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "all_datas"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "250"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(all_datas)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 3、将结果存入excel"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = pd.DataFrame(all_datas)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>rank</th>\n",
       "      <th>title</th>\n",
       "      <th>rating_star</th>\n",
       "      <th>rating_num</th>\n",
       "      <th>comments</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>肖申克的救赎</td>\n",
       "      <td>5</td>\n",
       "      <td>9.7</td>\n",
       "      <td>1790062</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>霸王别姬</td>\n",
       "      <td>5</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1320110</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>阿甘正传</td>\n",
       "      <td>5</td>\n",
       "      <td>9.5</td>\n",
       "      <td>1376257</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>这个杀手不太冷</td>\n",
       "      <td>45</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1570867</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4</td>\n",
       "      <td>5</td>\n",
       "      <td>美丽人生</td>\n",
       "      <td>5</td>\n",
       "      <td>9.5</td>\n",
       "      <td>879501</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>245</td>\n",
       "      <td>246</td>\n",
       "      <td>E.T. 外星人</td>\n",
       "      <td>45</td>\n",
       "      <td>8.6</td>\n",
       "      <td>234314</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>246</td>\n",
       "      <td>247</td>\n",
       "      <td>千钧一发</td>\n",
       "      <td>45</td>\n",
       "      <td>8.8</td>\n",
       "      <td>150973</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>247</td>\n",
       "      <td>248</td>\n",
       "      <td>变脸</td>\n",
       "      <td>45</td>\n",
       "      <td>8.5</td>\n",
       "      <td>296235</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>248</td>\n",
       "      <td>249</td>\n",
       "      <td>末路狂花</td>\n",
       "      <td>45</td>\n",
       "      <td>8.7</td>\n",
       "      <td>150872</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>249</td>\n",
       "      <td>250</td>\n",
       "      <td>四个春天</td>\n",
       "      <td>45</td>\n",
       "      <td>8.9</td>\n",
       "      <td>101759</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>250 rows × 5 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "    rank     title rating_star rating_num comments\n",
       "0      1    肖申克的救赎           5        9.7  1790062\n",
       "1      2      霸王别姬           5        9.6  1320110\n",
       "2      3      阿甘正传           5        9.5  1376257\n",
       "3      4   这个杀手不太冷          45        9.4  1570867\n",
       "4      5      美丽人生           5        9.5   879501\n",
       "..   ...       ...         ...        ...      ...\n",
       "245  246  E.T. 外星人          45        8.6   234314\n",
       "246  247      千钧一发          45        8.8   150973\n",
       "247  248        变脸          45        8.5   296235\n",
       "248  249      末路狂花          45        8.7   150872\n",
       "249  250      四个春天          45        8.9   101759\n",
       "\n",
       "[250 rows x 5 columns]"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "df.to_excel(\"豆瓣电影TOP250.xlsx\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
